package com.butterfly.mvc.servlet;

import com.butterfly.mvc.annotation.ReqType;

import java.util.ArrayList;
import java.util.List;

/**
 * Created by DouDou on 2016/9/28.
 */
public class ActionBean {
    /**访问操作路径**/
    private String path;
    /**处理类路径**/
    private String classPath;
    /**方法名称**/
    private String method;
    /**请求方式get/method**/
    private ReqType reqType;
    /**方法参数列表**/
    private Class[] params;

    public String getPath() {
        return path;
    }

    public void setPath(String path) {
        this.path = path;
    }

    public String getClassPath() {
        return classPath;
    }

    public void setClassPath(String classPath) {
        this.classPath = classPath;
    }

    public String getMethod() {
        return method;
    }

    public void setMethod(String method) {
        this.method = method;
    }

    public ReqType getReqType() {
        return reqType;
    }

    public void setReqType(ReqType reqType) {
        this.reqType = reqType;
    }

    public Class[] getParams() {
        return params;
    }

    public void setParams(Class[] params) {
        this.params = params;
    }

    @Override
    public String toString() {
        return "ActionBean{" +
                "path='" + path + '\'' +
                ", classPath='" + classPath + '\'' +
                ", method='" + method + '\'' +
                ", reqType='" + reqType + '\'' +
                ", params=" + params +
                '}';
    }
}
